colorpickerportal: Simplify version fetching code
authorBastien Nocera <hadess@hadess.net>
Mon, 23 Mar 2020 13:45:57 +0000 (14:45 +0100)
committerBastien Nocera <hadess@hadess.net>
Mon, 30 Mar 2020 16:31:23 +0000 (18:31 +0200)
commitbd55c5842e77331d46ec377542861710a56e1541
tree3b368b147f0a43e6834e2c5bf717d778c5bf5f61
parentda47ccaf3c3d4353f6fa4ac813aeb689a1d2d20a
colorpickerportal: Simplify version fetching code

Simplify version checking code by using a function to fetch the uint out
of the GVariant and don't throw a warning if it can't be fetched.
gtk/gtkcolorpickerportal.c